<?php defined('SYSPATH') or die('No direct script access.');

class Model_Registration_Hregistration {
    
    public function registration ($email, $password) {
        $holty_user = new Model_Registration_Huser();   
      
        $holty_user -> email    = $email;
        $holty_user -> username = $email;
        $holty_user -> password = $password;
        
        try
        {
            $holty_user -> save();
            return true;
        }
        catch(ORM_Validation_Exception $e)
        {
             $this -> errors = $e -> errors('validation');
             return false; 
        }


        return true;     
    }
    
} 
